package com.bed.lovewithpatientbed.pojo;

import java.io.Serializable;

/**
 * worker_message
 * @author 
 */
public class WorkerMessage implements Serializable {
    private Integer workerMessageId;

    private Integer roleId;

    private String workMessagePhone;

    private String workMessagePassword;

    private Integer softdel;

    private Role role;

    private static final long serialVersionUID = 1L;

    public Integer getWorkerMessageId() {
        return workerMessageId;
    }

    public void setWorkerMessageId(Integer workerMessageId) {
        this.workerMessageId = workerMessageId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getWorkMessagePhone() {
        return workMessagePhone;
    }

    public void setWorkMessagePhone(String workMessagePhone) {
        this.workMessagePhone = workMessagePhone;
    }

    public String getWorkMessagePassword() {
        return workMessagePassword;
    }

    public void setWorkMessagePassword(String workMessagePassword) {
        this.workMessagePassword = workMessagePassword;
    }

    public Integer getSoftdel() {
        return softdel;
    }

    public void setSoftdel(Integer softdel) {
        this.softdel = softdel;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WorkerMessage other = (WorkerMessage) that;
        return (this.getWorkerMessageId() == null ? other.getWorkerMessageId() == null : this.getWorkerMessageId().equals(other.getWorkerMessageId()))
            && (this.getRoleId() == null ? other.getRoleId() == null : this.getRoleId().equals(other.getRoleId()))
            && (this.getWorkMessagePhone() == null ? other.getWorkMessagePhone() == null : this.getWorkMessagePhone().equals(other.getWorkMessagePhone()))
            && (this.getWorkMessagePassword() == null ? other.getWorkMessagePassword() == null : this.getWorkMessagePassword().equals(other.getWorkMessagePassword()))
            && (this.getSoftdel() == null ? other.getSoftdel() == null : this.getSoftdel().equals(other.getSoftdel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getWorkerMessageId() == null) ? 0 : getWorkerMessageId().hashCode());
        result = prime * result + ((getRoleId() == null) ? 0 : getRoleId().hashCode());
        result = prime * result + ((getWorkMessagePhone() == null) ? 0 : getWorkMessagePhone().hashCode());
        result = prime * result + ((getWorkMessagePassword() == null) ? 0 : getWorkMessagePassword().hashCode());
        result = prime * result + ((getSoftdel() == null) ? 0 : getSoftdel().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", workerMessageId=").append(workerMessageId);
        sb.append(", roleId=").append(roleId);
        sb.append(", workMessagePhone=").append(workMessagePhone);
        sb.append(", workMessagePassword=").append(workMessagePassword);
        sb.append(", softdel=").append(softdel);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}